<h1>New relationship</h1>

<%= error_messages_for :relationship %>

<% form_for(:relationship, :url => relationships_path) do |f| %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Source</b><br />
    <%= f.text_field :source_id %>
  </p>

  <p>
    <b>Target</b><br />
    <%= f.text_field :target_id %>
  </p>

  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>

<%= link_to 'Back', relationships_path %>